package cn.itsource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableEurekaClient
@EnableCaching
@EnableFeignClients(value = "cn.itsource.feign")
@EnableScheduling
public class OrgApp3001 {

    public static void main(String[] args) {
        SpringApplication.run(OrgApp3001.class);
    }

//    @Scheduled(cron = "0/1 * * * * ?")
//    public void Check1(){
//        //这里是我们的业务逻辑
//        System.out.println("执行定时任务拉");
//    }
}